package com.dongnaoedu.rpc.redis.example;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.dongnaoedu.rpc.redis.annotation.RedisRpcClient;

/** 消费者 */
@Service
public class HelloServiceConsumer {
	
	private final static Logger logger = LoggerFactory.getLogger(HelloServiceConsumer.class);
	
	@RedisRpcClient
	HelloService helloService;

	public void sayHi(String content) {
		logger.info(helloService.say(content));
	}
}
